<?php require_once('setup.php'); ?>
<form action="uschedulerofi.php" method="post" autocomplete="on">
    User name: <input type="text" name="username" autofocus="autofocus" required="required"/>
    Password : <input type="password" name="password" required="required"/>
    <input type="submit" />
</form>

<?php
if(isset($_POST['username']) &&
   isset($_POST['password']))
{
    $username = sanitizeString($_POST['username']);
    $password = sanitizeString($_POST['username']);
    $isValid = validateLogin($username, $password);

    if($isValid)
    { // start a session
        session_start();
        $_SESSION['username'] = $username;
        $_SESSION['password'] = $password;
        die("Congratulations. You May Procede! <a href='uschedulerofi.php'>Enter Here</a>");
    }
    else
    { // redisplay login
        echo 'invalid login';
    }
}
?>